{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
<!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">卫生地段责任表</p>
                     <a href="index.php?a=district.add" class="btn btn-primary btn-sm" style="float:right;">批 量 录 入</a>
                </div>
                   <div class="box-body">
                      <div class="form-group ">
							  <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
								   学年学期：
							  </label>
							  <div class="input-group col-sm-2 col-xs-12" style="float:left; margin-right:6px;">
								   <select class="form-control" name ="semester_id">
                                            <option value="">请选择</option>
										{%foreach from=$semester_lists key=key item=value%}
                                            <option value="{%$value.semester_id%}">{%$value.semester_name%}</option>
										{%/foreach%}
								    </select>
							  </div> 
                              <input type="hidden" name="a" value="district.list">
							  <button type="submit" class="btn btn-warning">确 定</button>
				        </div>
                      <h4 class="text-center">{%$semester_data.semester_xname%}{%$semester_data.semester_name%}各班负责卫生地段责任表</h4>
                      <p>区域名称：{%$explain_data.explain_name%}</p>
                      <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style="background-color:#6168fe;">
									    <td>班级</td>
                                        <td>常规地段</td>
                                        <td>其他地段</td>
										<td width="130">操作</td>
                                    </tr>	
                                </thead>
                                <tbody>
								{%foreach from=$district_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.class_name%}</td>
                                        <td>{%$value.district_rule%}</td>
                                        <td>{%$value.district_rests%}</td>
                                        <td>
                                        	  <a href="index.php?a=district.update&district_id={%$value.district_id%}" class="btn btn-warning btn-sm" title="修改"><i class="fa fa-edit (alias)"></i></a>
                                              <a href="index.php?a=district.del&district_id={%$value.district_id%}" class="btn btn-danger btn-sm"  title="删除"  onclick="if(confirm('警告！确认删除信息?')==false)return false;"> <i class="fa fa-trash"></i></a>
                                        </td>
                                    </tr>
								{%/foreach%}
                                   
                            </tbody>
                        </table>
                        备注：<p>{%$explain_data.explain_content%}</p>
				   </div><!--box-body -->
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           <div class="box-footer">
		   {%$page%}
		   </div>
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
